home *** CD-ROM | disk | FTP | other *** search
/ Adobe Graphics & Publishing SDK 1996 December / Adobe Graphics & Publishing SDK 1996 December.iso / pc / ps40sdk / examples / import / gradientimport / gradientimport.mak < prev    next >
Encoding:
Makefile  |  1996-07-22  |  2.0 KB  |  83 lines

  1. #
  2. #       File: GradientImport Plugin Makefile
  3. # Import .8BA
  4. #
  5.  
  6. TARGET  = GradientImport
  7. UTILDIR = D:\!CodeWork\Examples\Resources
  8. SOURCES = D:\!CodeWork\Examples\Common\Sources.c
  9. OBJECTS = ..\GradientImport.obj GradientImportUIWin.obj ..\GradientImportScripting.obj $(SOURCES)\PIUtilities.obj $(SOURCES)\WinUtilities.obj $(SOURCES)\WinDialogUtils.obj
  10.  
  11. all: $(TARGET).8BA
  12.  
  13. PSDLLENTRY=DLLInit
  14. TYPE=8BA
  15.  
  16. OS=NT
  17. ENV=WIN32
  18.  
  19. !INCLUDE <$(OS)$(ENV).MAK>
  20.  
  21. .SUFFIXES: .cpp .c
  22.  
  23. INCLUDES = /I.. /I..\..\Common\Rez-files.r /I..\..\Common\Sources.c /I..\..\Common\Headers.h
  24.  
  25. !ifdef nodebug
  26. OPTIM=-Ox -G5
  27. !else
  28. OPTIM=-Zi -Od
  29. !endif
  30.  
  31. COMMON=-nologo -DMSDOS -DMSWindows=1 $(cflags) $(cvars) $(LOCAL_CFLAGS) $(OPTIM) $(INCLUDES)
  32.  
  33. .cpp.obj :
  34.     $(cc) $(COMMON) -Fo$*.obj $*.cpp
  35.  
  36. .c.obj :
  37.     $(cc) $(COMMON) -Fo$*.obj $*.c
  38.  
  39. .rc.res :
  40.     $(rc) $(rcvars) $(INCLUDES) -r -fo$*.res $(cvars) $*.rc
  41.  
  42. .res.rbj :
  43.     cvtres -$(CPU) $*.res -o $*.rbj
  44.  
  45. # Define the dependencies for the RC file.     <plugin>.RC includes PiPL.RSC
  46. $(TARGET).RC: PiPL.RSC
  47.  
  48. # Define the dependencies for PiPL.RSC. PiPL is auto-generated by CnvtPiPL.EXE 
  49. # taking PiPL.TMP as input
  50. PiPL.RSC: PIPL.TMP
  51.     $(UTILDIR)\cnvtpipl PiPL.TMP PiPL.RSC
  52.  
  53. # Define the dependencies for PiPL.TMP. PiPL.TMP is generated by C Pre-Processor 
  54. # taking <plugin>.r as input
  55. PIPL.TMP: ..\$(TARGET).R
  56.     $(cc) $(INCLUDES) /EP /DMSWindows=1 /Tc..\$(TARGET).R > PiPL.TMP
  57.  
  58. clean :
  59.     -del *.obj
  60.     -del *.rbj
  61.     -del *.res
  62.     -del *.err        
  63.     -del *.exp
  64.     -del $(TARGET).$(TYPE)
  65.  
  66. #  Generate import library (.lib) and export library (.exp)
  67. #  from a module-definition (.def) file for a DLL
  68. $(TARGET).lib $(TARGET).exp : $(TARGET).def
  69.     LIB /out:$(TARGET).lib /machine:$(CPU) $(OBJECTS) /def:$(TARGET).def
  70.  
  71.  
  72. $(TARGET).$(TYPE): $(TARGET).res $(OBJECTS) $(TARGET).exp
  73.     $(link) @<<
  74. $(ldebug)
  75. /dll
  76. /entry:$(PSDLLENTRY)$(DLLENTRY)
  77. /out:$*.$(TYPE)
  78. $(guilibsdll)
  79. $(OBJECTS)
  80. $(TARGET).res
  81. $(TARGET).exp
  82. <<NOKEEP
  83.